/*
 * @Description:
 * @version:
 * @Company:
 * @Author: GeYang
 * @Date: 2020-03-28 17:18:26
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2020-04-03 13:31:09
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import store from "./store";
import echarts from "echarts";
import axios from "axios";
import "element-ui/lib/theme-chalk/index.css";
import Cookies from 'js-cookie'
import './styles/element-variables.scss'
import '@/styles/index.scss' // global css

import './icons' // icon
import './permission' // permission control
import './utils/error-log' // error log

import * as filters from './filters' // global filters

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.$axios = axios;
/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  ElementUI,
  store,
  echarts,
  components: {
    App
  },
  template: "<App/>",
  render: h => h(App)
});
// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
